package com.wangp.springbootsource.valid;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.Payload;

/**
 * <pre>
 * classname MyParamValidatorAnno
 * description
 * </pre>
 *
 * @author wangpeng
 * @date 2021/1/24 21:46
 **/
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = MyParamValidator.class)
@interface MyParamValidatorAnno {

    String message() default "数字太小了吧";


    Class<? extends Payload>[] payload() default {};

    Class<?>[] groups() default {};

}
